package com.recruit.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 首页轮播广告
 * @TableName advertising
 */
@Data
@Accessors(chain = true)
@TableName(value ="advertising")
public class AdvertisingDO implements Serializable {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 广告图片url
     */
    private String url;

    /**
     * 图片轮播优先级：值越大，优先级越高
     */
    private Integer priority;

    /**
     * 图片上传时间
     */
    private Date createTime;

    /**
     * 图片是否可用：0-不可用，1-可用
     */
    private Integer state;

    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}